package com.turing.common.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Description smb协议对象
 * @Author lcy
 * @Date 2021/5/17 23:00
 */
@ConfigurationProperties(prefix = "smb.config.common")
@Component
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SmbInfo {

    /**
     * ip
     */
    private String host;

    /**
     * 域
     */
    private String domain;

    /**
     * 用户名--默认空字符串，不能为null
     */
    private String username = "";

    /**
     * 密码--默认空字符串，不能为null
     */
    private String password = "";

    /**
     * 连接超时时长--秒
     */
    private Long timeout = 120L;

    /**
     * 读取连接超时时长--秒
     */
    private Long readTimeout = 120L;

    /**
     * 读缓冲区大小
     */
    private Integer readBufferSize = 20480;

    /**
     * socket连接超时时长--秒
     */
    private Integer socketTimeout = 180;

}
